;$(function(){
	
	//form表单校验
	$('#form').validate({
		rules:{
			account: {
				required:true,
				maxlength: 20
			},
			pwd: {
				required: true
			}
		},
		messages:{
			account: {
				required: '请填写账号',
				maxlength: '最多输入20个字符'
			},
			pwd: {
				required: '请填写密码'
			}
		},
        submitHandler:function(form){
        	conosle.info('测试一下');
        	return false;
        }
	});
	
} );